git clone https://github.com/ambrop72/badvpn.git
cd badvpn
mkdir build
cd build; cmake .. -DBUILD_NOTHING_BY_DEFAULT=1 -DBUILD_TUN2SOCKS=1 -DBUILD_UDPGW=1

git clone https://github.com/jtRIPper/dns-tcp-socks-proxy.git
cd dns-tcp-socks-proxy
make

ip tuntap add dev tun0 mode tun user root
sudo ifconfig tun0 10.0.0.1 netmask 255.255.255.0

badvpn-tun2socks --tundev tun0 --netif-ipaddr 10.0.0.2 --netif-netmask 255.255.255.0 --socks-server-addr 10.1.10.44:1080 \
    --udpgw-remote-server-addr=10.1.10.44:17730
